package com.zqq.user.service

import com.zqq.user.service.bean.UserInfo
import rx.Observable

/**
 * 用户模块 业务接口
 * wc
 * @author zqq on 2018/7/26
 */
interface UserService {

    //1.用户注册
    fun register(mobile: String, pwd: String, verifyCode: String): Observable<Boolean>

    //2.用户登录
    fun login(mobile: String, pwd: String, pushId: String): Observable<UserInfo>

    //3.编辑用户资料
    fun editUser(userIcon: String, userName: String, userGender: String, userSign: String): Observable<UserInfo>


    //忘记密码
    fun forgetPwd(mobile: String, verifyCode: String): Observable<Boolean>

    //重置密码
    fun resetPwd(mobile: String, pwd: String): Observable<Boolean>

}